<?php
include "connection.php";
$v1_1=$_GET['sd_1_1'];
$v1_2=$_GET['sd_1_2'];
$v1_3=$_GET['sd_1_3'];
$v1_4=$_GET['sd_1_4'];
$v2_1=$_GET['sd_2_1'];
$v2_2=$_GET['sd_2_2'];
$v2_3=$_GET['sd_2_3'];
$v2_4=$_GET['sd_2_4'];
$v2_5=$_GET['sd_2_5'];
$v2_6a=$_GET['sd_2_6a'];
$v2_6b=$_GET['sd_2_6b'];
$v3_1a=$_GET['sd_3_1a'];
$v3_1b=$_GET['sd_3_1b'];
$v3_211=$_GET['sd_3_211'];
$v3_212=$_GET['sd_3_212'];
$v3_213=$_GET['sd_3_213'];
$v3_214=$_GET['sd_3_214'];
$v3_215=$_GET['sd_3_215'];
$v3_221=$_GET['sd_3_221'];
$v3_222=$_GET['sd_3_222'];
$v3_223=$_GET['sd_3_223'];
$v3_224=$_GET['sd_3_224'];
$v3_225=$_GET['sd_3_225'];
$v3_231=$_GET['sd_3_231'];
$v3_232=$_GET['sd_3_232'];
$v3_233=$_GET['sd_3_233'];
$v3_234=$_GET['sd_3_234'];
$v3_235=$_GET['sd_3_235'];
$v3_3=$_GET['sd_3_3'];
$v3_4=$_GET['sd_3_4'];
$v3_5a=$_GET['sd_3_5a'];
$v3_5b=$_GET['sd_3_5b'];
$v3_5c=$_GET['sd_3_5c'];
$v3_5d=$_GET['sd_3_5d'];
$v3_5e=$_GET['sd_3_5e'];
$v4_1=$_GET['sd_4_1'];
$v4_2a=$_GET['sd_4_2a'];
$v4_2b=$_GET['sd_4_2b'];
$v4_2c=$_GET['sd_4_2c'];
$v4_2d=$_GET['sd_4_2d'];
$v4_2e=$_GET['sd_4_2e'];
$v4_2f=$_GET['sd_4_2f'];
$v4_2g=$_GET['sd_4_2g'];
$v4_2h=$_GET['sd_4_2h'];
$v4_3=$_GET['sd_4_3'];
$v4_4=$_GET['sd_4_4'];
$v4_5=$_GET['sd_4_5'];
$v4_6=$_GET['sd_4_6'];
$v4_7=$_GET['sd_4_7'];
$v4_8=$_GET['sd_4_8'];
$v4_9=$_GET['sd_4_9'];
$v4_10=$_GET['sd_4_10'];
$v4_11a=$_GET['sd_4_11a'];
$v4_11ba=$_GET['sd_4_11ba'];
$v4_11bb=$_GET['sd_4_11bb'];
$v4_11bc=$_GET['sd_4_11bc'];
$v4_11bd=$_GET['sd_4_11bd'];
$v4_11c=$_GET['sd_4_11c'];
$v4_12=$_GET['sd_4_12'];
$v4_13a=$_GET['sd_4_13a'];
$v4_13b=$_GET['sd_4_13b'];
$v4_13c=$_GET['sd_4_13c'];
$v4_14a=$_GET['sd_4_14a'];
$v4_14b=$_GET['sd_4_14b'];
$v4_14c=$_GET['sd_4_14c'];
$v4_14d=$_GET['sd_4_14d'];
$v4_15=$_GET['sd_4_15'];
$v4_16a=$_GET['sd_4_16a'];
$v4_16b=$_GET['sd_4_16b'];
$v4_17=$_GET['sd_4_17'];
$v4_18=$_GET['sd_4_18'];
$v4_19=$_GET['sd_4_19'];
$v4_20=$_GET['sd_4_20'];
$v4_21a=$_GET['sd_4_21a'];
$v4_21b=$_GET['sd_4_21b'];
$v4_22a=$_GET['sd_4_22a'];
$v4_22b=$_GET['sd_4_22b'];
$v4_22c=$_GET['sd_4_22c'];
$v4_22d=$_GET['sd_4_22d'];
$v4_22e=$_GET['sd_4_22e'];
$v5_1=$_GET['sd_5_1'];
$v5_2=$_GET['sd_5_2'];
$v5_3=$_GET['sd_5_3'];
$v5_4=$_GET['sd_5_4'];
$v5_5a=$_GET['sd_5_5a'];
$v5_5b=$_GET['sd_5_5b'];
$v5_5c=$_GET['sd_5_5c'];
$v5_5d=$_GET['sd_5_5d'];
$v5_6=$_GET['sd_5_6'];
$v5_7a=$_GET['sd_5_7a'];
$v5_7b=$_GET['sd_5_7b'];
$v5_8=$_GET['sd_5_8'];
$v5_9a=$_GET['sd_5_9a'];
$v5_9b=$_GET['sd_5_9b'];
$v5_9c=$_GET['sd_5_9c'];
$v5_9d=$_GET['sd_5_9d'];
$v5_10=$_GET['sd_5_10'];
$v5_11=$_GET['sd_5_11'];
$v5_12=$_GET['sd_5_12'];
$v5_13a=$_GET['sd_5_13a'];
$v5_13b=$_GET['sd_5_13b'];
$v6_1=$_GET['sd_6_1'];
$v6_2a=$_GET['sd_6_2a'];
$v6_2b=$_GET['sd_6_2b'];
$v6_3a=$_GET['sd_6_3a'];
$v6_3b=$_GET['sd_6_3b'];
$v6_3c=$_GET['sd_6_3c'];
$v6_3d=$_GET['sd_6_3d'];
$v7_1=$_GET['sd_7_1'];
$v7_2=$_GET['sd_7_2'];
$v7_3=$_GET['sd_7_3'];
$v7_4=$_GET['sd_7_4'];
$v7_5=$_GET['sd_7_5'];
$v7_6=$_GET['sd_7_6'];



{
   
		   $result1 = mysql_query("INSERT INTO pk14_pinter_2013 ( 
sd_1_1,
sd_1_2,
sd_1_3,
sd_1_4,
sd_2_1,
sd_2_2,
sd_2_3,
sd_2_4,
sd_2_5,
sd_2_6a,
sd_2_6b,
sd_3_1a,
sd_3_1b,
sd_3_211,
sd_3_212,
sd_3_213,
sd_3_214,
sd_3_215,
sd_3_221,
sd_3_222,
sd_3_223,
sd_3_224,
sd_3_225,
sd_3_231,
sd_3_232,
sd_3_233,
sd_3_234,
sd_3_235,
sd_3_3,
sd_3_4,
sd_3_5a,
sd_3_5b,
sd_3_5c,
sd_3_5d,
sd_3_5e,
sd_4_1,
sd_4_2a,
sd_4_2b,
sd_4_2c,
sd_4_2d,
sd_4_2e,
sd_4_2f,
sd_4_2g,
sd_4_2h,
sd_4_3,
sd_4_4,
sd_4_5,
sd_4_6,
sd_4_7,
sd_4_8,
sd_4_9,
sd_4_10,
sd_4_11a,
sd_4_11ba,
sd_4_11bb,
sd_4_11bc,
sd_4_11bd,
sd_4_11c,
sd_4_12,
sd_4_13a,
sd_4_13b,
sd_4_13c,
sd_4_14a,
sd_4_14b,
sd_4_14c,
sd_4_14d,
sd_4_15,
sd_4_16a,
sd_4_16b,
sd_4_17,
sd_4_18,
sd_4_19,
sd_4_20,
sd_4_21a,
sd_4_21b,
sd_4_22a,
sd_4_22b,
sd_4_22c,
sd_4_22d,
sd_4_22e,
sd_5_1,
sd_5_2,
sd_5_3,
sd_5_4,
sd_5_5a,
sd_5_5b,
sd_5_5c,
sd_5_5d,
sd_5_6,
sd_5_7a,
sd_5_7b,
sd_5_8,
sd_5_9a,
sd_5_9b,
sd_5_9c,
sd_5_9d,
sd_5_10,
sd_5_11,
sd_5_12,
sd_5_13a,
sd_5_13b,
sd_6_1,
sd_6_2a,
sd_6_2b,
sd_6_3a,
sd_6_3b,
sd_6_3c,
sd_6_3d,
sd_7_1,
sd_7_2,
sd_7_3,
sd_7_4,
sd_7_5,
sd_7_6


		   
		   ) VALUES 
		   
		   (
'$v1_1',
'$v1_2',
'$v1_3',
'$v1_4',
'$v2_1',
'$v2_2',
'$v2_3',
'$v2_4',
'$v2_5',
'$v2_6a',
'$v2_6b',
'$v3_1a',
'$v3_1b',
'$v3_211',
'$v3_212',
'$v3_213',
'$v3_214',
'$v3_215',
'$v3_221',
'$v3_222',
'$v3_223',
'$v3_224',
'$v3_225',
'$v3_231',
'$v3_232',
'$v3_233',
'$v3_234',
'$v3_235',
'$v3_3',
'$v3_4',
'$v3_5a',
'$v3_5b',
'$v3_5c',
'$v3_5d',
'$v3_5e',
'$v4_1',
'$v4_2a',
'$v4_2b',
'$v4_2c',
'$v4_2d',
'$v4_2e',
'$v4_2f',
'$v4_2g',
'$v4_2h',
'$v4_3',
'$v4_4',
'$v4_5',
'$v4_6',
'$v4_7',
'$v4_8',
'$v4_9',
'$v4_10',
'$v4_11a',
'$v4_11ba',
'$v4_11bb',
'$v4_11bc',
'$v4_11bd',
'$v4_11c',
'$v4_12',
'$v4_13a',
'$v4_13b',
'$v4_13c',
'$v4_14a',
'$v4_14b',
'$v4_14c',
'$v4_14d',
'$v4_15',
'$v4_16a',
'$v4_16b',
'$v4_17',
'$v4_18',
'$v4_19',
'$v4_20',
'$v4_21a',
'$v4_21b',
'$v4_22a',
'$v4_22b',
'$v4_22c',
'$v4_22d',
'$v4_22e',
'$v5_1',
'$v5_2',
'$v5_3',
'$v5_4',
'$v5_5a',
'$v5_5b',
'$v5_5c',
'$v5_5d',
'$v5_6',
'$v5_7a',
'$v5_7b',
'$v5_8',
'$v5_9a',
'$v5_9b',
'$v5_9c',
'$v5_9d',
'$v5_10',
'$v5_11',
'$v5_12',
'$v5_13a',
'$v5_13b',
'$v6_1',
'$v6_2a',
'$v6_2b',
'$v6_3a',
'$v6_3b',
'$v6_3c',
'$v6_3d',
'$v7_1',
'$v7_2',
'$v7_3',
'$v7_4',
'$v7_5',
'$v7_6'


		   
			   
		   
		   )");
		   
			if($result1)
			{
				$response["code"]="1";
				$response["msg"] = "posted successfully";
echo json_encode($response);
			} 
			else
			{
			echo mysql_error();
				$response["code"]="0";
				$response["msg"] = "Not posted successfully";
echo json_encode($response);
			}
}
?>